<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="bnsGroupList" checkbox="true" fitColumns="false" title="群组信息表" actionUrl="bnsGroupController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="创建人名称"  field="createName"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="创建人登录名称"  field="createBy"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="创建日期"  field="createDate" formatter="yyyy-MM-dd" hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="更新人名称"  field="updateName"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="更新人登录名称"  field="updateBy"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="更新日期"  field="updateDate" formatter="yyyy-MM-dd" hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="所属部门"  field="sysOrgCode"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="所属公司"  field="sysCompanyCode"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="群组分类"  field="groupClassId"  queryMode="single" dictionary="bns_group_class,id,group_name"  width="120"></t:dgCol>
   <t:dgCol title="群组名称"  field="groupName"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="群主"  field="groupLeader"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="帖子数量"  field="articleAccount"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="成员数量"  field="memberAccount"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="群组积分"  field="groupIntegral"   query="true" queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="是否推荐"  field="isRecommend"    queryMode="single"  width="120"></t:dgCol> 
   <t:dgCol title="加入方式"  field="addType"    queryMode="single" dictionary="groupaddtp" width="120"></t:dgCol>
   <t:dgCol title="阅读方式"  field="viewType"    queryMode="single" dictionary="view_type" width="120"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
   <t:dgFunOpt title="成员" funname="showUserWin(id)" />
   <t:dgDelOpt title="删除" url="bnsGroupController.do?doDel&id={id}" />
   <t:dgToolBar title="录入" icon="icon-add" url="bnsGroupController.do?goAdd" funname="add" width="800" height="655"></t:dgToolBar>
   <t:dgToolBar title="编辑" icon="icon-edit" url="bnsGroupController.do?goUpdate" funname="update" width="800" height="655"></t:dgToolBar>
   <t:dgToolBar title="批量删除"  icon="icon-remove" url="bnsGroupController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
   <t:dgToolBar title="查看" icon="icon-search" url="bnsGroupController.do?goUpdate" funname="detail"></t:dgToolBar>
  </t:datagrid>
  </div>
 </div>
 <script src = "webpage/com/buss/group/bnsGroupList.js"></script>		
 <script type="text/javascript">
 $(document).ready(function(){
 		//给时间控件加上样式
 			$("#bnsGroupListtb").find("input[name='createDate']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 			$("#bnsGroupListtb").find("input[name='updateDate']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 });
 function showUserWin(id){ 
	  	$.dialog({
	  		width:600,
	  		height:400, 
	          title: "成员列表",
	          zIndex:2100,
	          max: false,
	          min: false,
	          resize: false,
	          content: 'url:bnsGroupUserController.do?showwin&gid='+id
	      });
 }
 
 </script>